#!/bin/bash

for f in `ls *.eps`
do
  echo "Processing $f file..."
  name=${f//\.eps/}
  
    # take action on each file. $f store current file name
  echo $name;
epstopdf --nogs $name.eps |gs -q -sDEVICE=pdfwrite -dAutoRotatePages=/None -dPDFSETTINGS=/prepress -sOutputFile=$name.pdf
done


